package com.hwl.server.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hwl.server.entity.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hwl.server.pojo.EmployeePageParam;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author long
 * @since 2021-11-28
 */
public interface EmployeeMapper extends BaseMapper<Employee> {

    /**
     * 分页条件查询员工列表
     */
    IPage<Employee> getEmployeeByPage(Page<Employee> page, EmployeePageParam employeePage);

    /**
     * 查询员工
     */
    List<Employee> getEmployee(Integer id);

    /**
     * 获取所有员工套账
     */
    IPage<Employee> getEmployeeWithSalary(Page<Employee> page);
}
